package cn.wolfcode.mp.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {

    private boolean success;
    private String msg;
    private Object data;

    public static JsonResult success(){
        return new JsonResult(true,null,null);
    }
    public static JsonResult fail(String msg){
        return new JsonResult(false,msg,null);
    }

}
